﻿using System;
using System.Collections;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Connection;
using Me.Prettyprint.Cassandra.Model.Thrift;
using Me.Prettyprint.Cassandra.Serializers;
using Me.Prettyprint.Cassandra.Service;
using Me.Prettyprint.Cassandra.Utils;
using Me.Prettyprint.Hector.Api;
using Me.Prettyprint.Hector.Api.Beans;
using Me.Prettyprint.Hector.Api.Query;
using Org.Apache.Cassandra.Thrift;

namespace Me.Prettyprint.Cassandra.Model
{
    public class OrderedCounterSuperRowsImpl<K, SN, N> : CounterSuperRowsImpl<K, SN, N>, OrderedCounterSuperRows<K, SN, N>
    {
        public OrderedCounterSuperRowsImpl(Dictionary<K, List<CounterSuperColumn>> thriftRet, Serializer<K> keySerializer,
            Serializer<SN> sNameSerializer, Serializer<N> nameSerializer) : base(thriftRet, keySerializer, sNameSerializer, nameSerializer)
        {
            List = new List<CounterSuperRow<K, SN, N>>(Rows.Values);
        }
        public List<CounterSuperRow<K, SN, N>> List
        {
            get;
            set;
        }
    }
}
